int32 GPS_Serial_Savetty(const char *port)
{
int32 fd;
+
+ if (gps_is_usb) return 1;
if((fd = open(port, O_RDWR|O_NDELAY))==-1)
{
int32 GPS_Serial_Restoretty(const char *port)
{
int32 fd;
+
+ if (gps_is_usb) return 1;
if((fd = open(port, O_RDWR|O_NDELAY))==-1)
{
************************************************************************/
int32 GPS_Serial_Flush(int32 fd)
{
+ if (gps_is_usb) return 1;
if(tcflush(fd,TCIOFLUSH))
{
int32 GPS_Serial_Close(int32 fd, const char *port)
{
+ if (gps_is_usb) return 1;
+
if(close(fd)==-1)
{
perror("close");